package com.bcinfo.iccard.task;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.bcinfo.iccard.model.Pos;
import com.bcinfo.iccard.service.PosService;

/**
 * 执行存储过程
 * @author xphai
 * 
 */
public class ExecuteJobTask  {
    
	private static Log _logger = LogFactory.getLog(ExecuteJobTask.class);
	@Autowired
	private PosService posService;
	/**
	 * 实现定时任务逻辑
	 * <br/>
	 * <p>Description:
	 * <br/>
	 * <p>Author: wangguangchun<br/>
	 * <p>Date: 2013-12-24-上午11:05:01<br/>
	 * <p>
	 * @throws Exception   
	 *
	 */
	public void execute() throws Exception {
		_logger.info("start Job ");
		Pos pos=posService.load(2);
		if(pos !=null ){
		    _logger.debug("pos:"+pos.toString());
		}
		_logger.info("end Job ");
	}
}
